#include "Windows.h"
#include "Winsvc.h"

class CDriverCtrl
{
private:
	SC_HANDLE	g_schSCManager;
	//SC_HANDLE hManager;
	HANDLE	hDevice;
	
	BOOL	_DbgMsgPrint(char* OutMsg);
public:
	CDriverCtrl(void);
	~CDriverCtrl(void);

	char	SERVICENAME[0x20];			//"SIoctl"
	char	DISPLAYNAME[0x20];			//"SIoctl"
	char	SYSNAME[0x20];				//"SIoctl.sys"
	char	HOOKERDRIVER[0x20];			//"\\\\.\\SIoctl.sys"	

	BOOL	InitDriver(char* INSERVICENAME, char* INDISPLAYNAME, char* INSYSNAME, char* INHOOKERDRIVER);
	BOOL	InstallDriver();
	BOOL	LaunchDriver();
	BOOL	StopDriver();
	BOOL	ReMoveDriver();
	BOOL	DriverDoCommand(DWORD m_ctrcode, BYTE* InBuffer, DWORD InBufferLen, BYTE* OutBuffer, DWORD OutBufferLen);
};